<?php

namespace UF\AccountBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class CommonsController extends Controller
{
    
	public function changeLanguageAction($locale){
		$session = $this->getRequest()->getSession();
		
		$session->setLocale($locale);
		
		$lastRoute = $session->get("lastRoute");
		return $this->redirect($this->generateUrl($lastRoute));		
	}
	
}
